<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:cc="http://java.sun.com/jsf/composite">

<cc:interface componentType="br.com.sig.presentation.component.InputContainer">
	<cc:attribute name="id" required="true" />
	<cc:attribute name="label" required="true" />
</cc:interface>

<cc:implementation>
	<div id="#{cc.clientId}" class="decorate">
		<h:outputLabel value="#{cc.attrs.label}" styleClass="#{cc.attrs.invalid == true ? 'required' : ''}" />
		<h:outputText value=" *" styleClass="required" rendered="#{cc.attrs.required}" />
		<div>
			<cc:insertChildren />
		</div>		
	</div>
</cc:implementation>
</html>